import service from '@/utils/request'
export function useGetTrackPosApi(data: any) {
  return service.get('/gps/trackPos', {
    params: data
  })
}
export function getRuleList(params) {
  return service.get('/api/rule/list', {
    params
  })
}
export function getRuleInfo(id) {
  return service.get(`/api/rule/info/${id}`)
}
// 新增
export function addRule(data) {
  return service.post('/api/rule/save', data)
}
export function updateRule(data) {
  return service.put('/api/rule/update', data)
}
export function deleteRule(id) {
  return service.delete(`/api/rule/delete/${id}`)
}
